<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CompanyContactsCreateClientRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'house_id'		=> 'required',
			'realname'		=> 'required',
			'mobile'		=> 'required|size:11',
        ];
    }
    
    public function messages(){
    	return [
    		'house_id.required'	=> '房屋信息参数有误',
    		'realname.required'	=> '请填写业主真实姓名',
    		'mobile.required'	=> '请填写手机号码',
    		'mobile.size'		=> '手机号码格式错误',
		];
	}
}
